import { MockMethod } from "vite-plugin-mock";

const mock: Array<MockMethod> = [
  {
    // 接口路径
    url: "/dev-api/api/v1/dict/types/page",

    // 接口方法
    method: "get",

    // 返回数据
    response: () => {
      return {
        code: "00000",
        data: {
          list: [
            {
              id: 1,
              name: "性别6",
              code: "gender",
              status: 1,
            },
            {
              id: 2,
              name: "状态2",
              code: "status",
              status: 1,
            },
          ],
          total: 2,
        },
        msg: "一切ok",
      };
    },
  },
];

export default mock;
